<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>var的使用</title>
</head>
<body>
   <script>
       for (var i = 0; i <5 ; i++) {
           console.log(i);
       }
       console.log(i);
   </script>
</body>
</html>